<div class="new-products">
<?php if ($module->showtitle) { ?>
	<h4><?php echo $module->title; ?></h4>
<?php }; ?>
	<div class="support new-p">
	<?php foreach($last_prod as $k => $curr){ ?>
	   <div class="new-product <?php if($k%4 == 3) echo 'last'; ?>">
		   <?php if ($show_image) { ?>	   
			   <a href="<?php print $curr->product_link?>"><img src = "<?php print $jshopConfig->image_product_live_path?>/<?php if ($curr->product_thumb_image) print $curr->product_thumb_image; else print $noimage?>" alt="" /></a>	   
		   <?php } ?>
			<p class="name-p">
			   <a href="<?php print $curr->product_link?>"><?php print $curr->name?></a>
			</p>
		   <?php if ($curr->_display_price){?>
		   <p class="price-p">
			   <?php print formatprice($curr->product_price);?>
		   </p>
		   <?php }?>
		   <a class="ccart" href="<?php print $curr->buy_link?>">Gio hang</a>
	   </div>       
	<?php } ?>
	</div>
</div>
